package com.liang.text6;

public class Text6Inner {
    public static void main(String[] args) {
        method(new Inner() {
            @Override
            public void show() {
                System.out.println("show...");
            }
        });

        method(()-> {System.out.println("匿名内部类");});

    }

    public static void method(Inner inner) {
        inner.show();
    }
}


